@extends('layouts.app')

@section('content')

<div class="container">
  <div class="col-md-10 offset-md-1">
    <div class="card ">

      <div class="card-header">
        <h1>
          Pictuer /
          @if($pictuer->id)
            Edit #{{ $pictuer->id }}
          @else
            Create
          @endif
        </h1>
      </div>

      <div class="card-body">
        @if($pictuer->id)
          <form action="{{ route('pictuers.update', $pictuer->id) }}" method="POST" accept-charset="UTF-8">
          <input type="hidden" name="_method" value="PUT">
        @else
          <form action="{{ route('pictuers.store') }}" method="POST" accept-charset="UTF-8">
        @endif

          @include('common.error')

          <input type="hidden" name="_token" value="{{ csrf_token() }}">


                <div class="form-group">
                    <label for="user_id-field">User_id</label>
                    <input class="form-control" type="text" name="user_id" id="user_id-field" value="{{ old('user_id', $pictuer->user_id ) }}" />
                </div>
                <div class="form-group">
                    <label for="view_counts-field">View_counts</label>
                    <input class="form-control" type="text" name="view_counts" id="view_counts-field" value="{{ old('view_counts', $pictuer->view_counts ) }}" />
                </div>
                <div class="form-group">
                    <label for="up_counts-field">Up_counts</label>
                    <input class="form-control" type="text" name="up_counts" id="up_counts-field" value="{{ old('up_counts', $pictuer->up_counts ) }}" />
                </div>
                <div class="form-group">
                	<label for="title-field">Title</label>
                	<input class="form-control" type="text" name="title" id="title-field" value="{{ old('title', $pictuer->title ) }}" />
                </div>
                <div class="form-group">
                	<label for="md5-field">Md5</label>
                	<input class="form-control" type="text" name="md5" id="md5-field" value="{{ old('md5', $pictuer->md5 ) }}" />
                </div>
                <div class="form-group">
                	<label for="dhash-field">Dhash</label>
                	<input class="form-control" type="text" name="dhash" id="dhash-field" value="{{ old('dhash', $pictuer->dhash ) }}" />
                </div>
                <div class="form-group">
                	<label for="rgb-field">Rgb</label>
                	<input class="form-control" type="text" name="rgb" id="rgb-field" value="{{ old('rgb', $pictuer->rgb ) }}" />
                </div>
                <div class="form-group">
                	<label for="domain-field">Domain</label>
                	<input class="form-control" type="text" name="domain" id="domain-field" value="{{ old('domain', $pictuer->domain ) }}" />
                </div>
                <div class="form-group">
                	<label for="path-field">Path</label>
                	<input class="form-control" type="text" name="path" id="path-field" value="{{ old('path', $pictuer->path ) }}" />
                </div>
                <div class="form-group">
                	<label for="filename-field">Filename</label>
                	<input class="form-control" type="text" name="filename" id="filename-field" value="{{ old('filename', $pictuer->filename ) }}" />
                </div>
                <div class="form-group">
                	<label for="ext-field">Ext</label>
                	<input class="form-control" type="text" name="ext" id="ext-field" value="{{ old('ext', $pictuer->ext ) }}" />
                </div>
                <div class="form-group">
                    <label for="width-field">Width</label>
                    <input class="form-control" type="text" name="width" id="width-field" value="{{ old('width', $pictuer->width ) }}" />
                </div>
                <div class="form-group">
                    <label for="height-field">Height</label>
                    <input class="form-control" type="text" name="height" id="height-field" value="{{ old('height', $pictuer->height ) }}" />
                </div>
                <div class="form-group">
                    <label for="size-field">Size</label>
                    <input class="form-control" type="text" name="size" id="size-field" value="{{ old('size', $pictuer->size ) }}" />
                </div>
                <div class="form-group">
                    <label for="hd-field">Hd</label>
                    <input class="form-control" type="text" name="hd" id="hd-field" value="{{ old('hd', $pictuer->hd ) }}" />
                </div>
                <div class="form-group">
                	<label for="url-field">Url</label>
                	<input class="form-control" type="text" name="url" id="url-field" value="{{ old('url', $pictuer->url ) }}" />
                </div>
                <input type="hidden" name="crawler_pictuer_id" value="0" />
                <input type="hidden" name="article_id" value="0" />
                <div class="form-group">
                    <label for="status-field">Status</label>
                    <input class="form-control" type="text" name="status" id="status-field" value="{{ old('status', $pictuer->status ) }}" />
                </div>

          <div class="well well-sm">
            <button type="submit" class="btn btn-primary">Save</button>
            <a class="btn btn-link float-xs-right" href="{{ route('pictuers.index') }}"> <- Back</a>
          </div>
        </form>
      </div>
    </div>
  </div>
</div>

@endsection
